/**
 * CustomerTest.java
 *   4. Create a new test class called CustomerTest
 *
 *   5. In the main method:
 *      a) Create 2 object references to different Customer objects
 *      b) Use each variation of the setCustomerInfo method to provide
 *         information for each Customer object.
 *      c) Display the contents of each Customer object.
 *
 *
 * @author:  John Thomason
 *    Date:  Dec 6, 2008 / 7:53:53 PM
 *  Course:  CS222 - Java Programming II
 * Seminar:  5
 *  Assign:  2
 */


/**
 * CustomerTest Class
 */
public class CustomerTest {

    /**
    * Application Entry Point
    * @param args The command line arguments
    */
    public static void main(String[] args) {

        Customer c1 = new Customer(Customer.newId(),
                                   "Bob Smith",
                                   "123 Main Street",
                                   "(555) 123-4567"
                                   );

        Customer c2 = new Customer(Customer.newId(),
                                   "Helen Hacker",
                                   "456 North Street",
                                   "(555) 234-5678"
                                   );
        prt(c1 + "\n");
        prt(c2 + "\n");

        c1.setCustomerInfo(c1.getId(),
                           c1.getName(),
                           "789 Married Avenue",
                           "(666) 901-2345",
                           "bandhsmith@nowhere.net");

        c2.setCustomerInfo(c2.getId(),
                           "Helen Smith",
                           "789 Married Avenue",
                           "(666) 901-2345",
                           "bandhsmith@nowhere.net"
                           );

        prt(c1 + "\n");
        prt(c2 + "\n");
        
    }//end main()

    /**
     * prt()
     * Display a formatted message string on the console
     *
     * @param msg   The formatted message string
     */
    public static void prt(String msg){
        System.out.print(msg);
    }

}//end CustomerTest class
